package publics.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;


@Entity
@Table(name="owner_equity_changes")
public class OwnerEquityChanges {//所有者权益变动表
	
	   private Integer id;//ID  int not null,
	   private Enterprise ent;
	   private Boolean chooseTime;//年度还是当期 bool
	   private Integer year;//负债表年份
	   private Integer monthStart;//起始月份
	   private Integer monthEnd;//结束月份
	   private Integer type;// 年初余额还是期末余额（1上期，2本期）
	   private Integer list;//列表类型
	   //1:实收资本(或股本)，2:资本公积，3:减 库存股，4:盈余公积，5:未分配配利润，6:所有者权益合计
	   
	   private Float closeBalanceL;//上年年末余额 Float not null,
	   private Float policyChange;//会计政策变更    Float not null,
	   private Float errorChange;//前期差错更正     Float not null,
	   private Float openBalanceT;//本年年初余额 Float not null,
	   
	   private Float changeT;//本年增减变动金额         Float not null,
	   private Float netProfit;//净利润(一)       Float not null,
	   private Float equity;//直接计入所有者权益的利得和损失（二）           Float not null,
	   private Float saleNetChange;//可供出售金融资产公允价值变动净额  Float not null,
	   private Float otherOwnerChange;//权益法下被投资单位其他所有者权益变动的影响Float not null,
	   
	   private Float taxEffect;//与计入所有者权益项目有关的所得税影响       Float not null,
	   private Float otherChangeT;//其他1   Float not null,
	   private Float subtotal12;//上述（一）和（二）小计      Float not null,
	   private Float capital;//所有者投入和减少资本          Float not null,
	   private Float investCapital;//所有者投入资本   Float not null,
	   
	   private Float payment;//股份支付计入所有者权益的金额          Float not null,
	   private Float otherCapital;//其他2    Float not null,
	   private Float profitDistribution;//利润分配 Float not null,
	   private Float surplusReserve;//提取盈余公积  Float not null,
	   private Float distribution;//对所有者（或股东）的分配     Float not null,
	   
	   private Float otherDistribution;//其他3 Float not null,
	   private Float balanceDown;//所有者权益内部结转     Float not null,
	   private Float csToC;//资本公积转增资本（或股本）          Float not null,
	   private Float srToC;//盈余公积转增资本（或股本）          Float not null,
	   private Float srLose;// 盈余公积弥补亏损         Float not null,
	   private Float otherBalance;//其他4    Float not null,
	   private Float closeBalanceT;//本年年末余额 Float not null,
	   //primary key (private Float owe_id)
	   @Id
	   @GeneratedValue
	   @Column(name="Owe_id")
	public Integer getId() {
		return id;
	}
	   @ManyToOne(fetch=FetchType.LAZY)
	   @JoinColumn(name="Ent_id",nullable=false)
	public Enterprise getEnt() {
		return ent;
	}
	   @Column(name="Owe_choose_time")
	public Boolean isChooseTime() {
		return chooseTime;
	}
	   @Column(name="Owe_year")
	public Integer getYear() {
		return year;
	}
	   @Column(name="Owe_month_start")
	public Integer getMonthStart() {
		return monthStart;
	}
	   @Column(name="Owe_month_end")
	public Integer getMonthEnd() {
		return monthEnd;
	}
	   @Column(name="Owe_type")
	public Integer getType() {
		return type;
	}
	   @Column(name="Owe_list")
	public Integer getList() {
		return list;
	}
	   @Column(name="Owe_closing_balance_L")
	public Float getCloseBalanceL() {
		return closeBalanceL;
	}
	   @Column(name="Owe_policy_change")
	public Float getPolicyChange() {
		return policyChange;
	}
	   @Column(name="Owe_error_change")
	public Float getErrorChange() {
		return errorChange;
	}
	   @Column(name="Owe_opening_balance_T")
	public Float getOpenBalanceT() {
		return openBalanceT;
	}
	   @Column(name="Owe_change_T")
	public Float getChangeT() {
		return changeT;
	}
	   @Column(name="")
	public Float getNetProfit() {
		return netProfit;
	}
	   @Column(name="Owe_equity")
	public Float getEquity() {
		return equity;
	}
	   @Column(name="Owe_sale_net_change")
	public Float getSaleNetChange() {
		return saleNetChange;
	}
	   @Column(name="Owe_otherOwner_change")
	public Float getOtherOwnerChange() {
		return otherOwnerChange;
	}
	   @Column(name="Owe_tax_effect")
	public Float getTaxEffect() {
		return taxEffect;
	}
	   @Column(name="Owe_other_change_T")
	public Float getOtherChangeT() {
		return otherChangeT;
	}
	   @Column(name="Owe_subtotal_12")
	public Float getSubtotal12() {
		return subtotal12;
	}
	   @Column(name="Owe_capital")
	public Float getCapital() {
		return capital;
	}
	   @Column(name="Owe_invest_capital")
	public Float getInvestCapital() {
		return investCapital;
	}
	   @Column(name="Owe_payment")
	public Float getPayment() {
		return payment;
	}
	   @Column(name="Owe_other_capital")
	public Float getOtherCapital() {
		return otherCapital;
	}
	   @Column(name="Owe_profit_distribution")
	public Float getProfitDistribution() {
		return profitDistribution;
	}
	   @Column(name="Owe_surplus_reserve")
	public Float getSurplusReserve() {
		return surplusReserve;
	}
	   @Column(name="Owe_distribution")
	public Float getDistribution() {
		return distribution;
	}
	   @Column(name="Owe_other_distribution")
	public Float getOtherDistribution() {
		return otherDistribution;
	}
	   @Column(name="Owe_balance_down")
	public Float getBalanceDown() {
		return balanceDown;
	}
	   @Column(name="Owe_cs_to_c")
	public Float getCsToC() {
		return csToC;
	}
	   @Column(name="Owe_sr_to_c")
	public Float getSrToC() {
		return srToC;
	}
	   @Column(name="Owe_sr_lose")
	public Float getSrLose() {
		return srLose;
	}
	   @Column(name="Owe_other_balance")
	public Float getOtherBalance() {
		return otherBalance;
	}
	   @Column(name="Owe_closing_balance_T")
	public Float getCloseBalanceT() {
		return closeBalanceT;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public void setEnt(Enterprise ent) {
		this.ent = ent;
	}
	public void setChooseTime(Boolean chooseTime) {
		this.chooseTime = chooseTime;
	}
	public void setYear(Integer year) {
		this.year = year;
	}
	public void setMonthStart(Integer monthStart) {
		this.monthStart = monthStart;
	}
	public void setMonthEnd(Integer monthEnd) {
		this.monthEnd = monthEnd;
	}
	public void setType(Integer type) {
		this.type = type;
	}
	public void setList(Integer list) {
		this.list = list;
	}
	public void setCloseBalanceL(Float closeBalanceL) {
		this.closeBalanceL = closeBalanceL;
	}
	public void setPolicyChange(Float policyChange) {
		this.policyChange = policyChange;
	}
	public void setErrorChange(Float errorChange) {
		this.errorChange = errorChange;
	}
	public void setOpenBalanceT(Float openBalanceT) {
		this.openBalanceT = openBalanceT;
	}
	public void setChangeT(Float changeT) {
		this.changeT = changeT;
	}
	public void setNetProfit(Float netProfit) {
		this.netProfit = netProfit;
	}
	public void setEquity(Float equity) {
		this.equity = equity;
	}
	public void setSaleNetChange(Float saleNetChange) {
		this.saleNetChange = saleNetChange;
	}
	public void setOtherOwnerChange(Float otherOwnerChange) {
		this.otherOwnerChange = otherOwnerChange;
	}
	public void setTaxEffect(Float taxEffect) {
		this.taxEffect = taxEffect;
	}
	public void setOtherChangeT(Float otherChangeT) {
		this.otherChangeT = otherChangeT;
	}
	public void setSubtotal12(Float subtotal12) {
		this.subtotal12 = subtotal12;
	}
	public void setCapital(Float capital) {
		this.capital = capital;
	}
	public void setInvestCapital(Float investCapital) {
		this.investCapital = investCapital;
	}
	public void setPayment(Float payment) {
		this.payment = payment;
	}
	public void setOtherCapital(Float otherCapital) {
		this.otherCapital = otherCapital;
	}
	public void setProfitDistribution(Float profitDistribution) {
		this.profitDistribution = profitDistribution;
	}
	public void setSurplusReserve(Float surplusReserve) {
		this.surplusReserve = surplusReserve;
	}
	public void setDistribution(Float distribution) {
		this.distribution = distribution;
	}
	public void setOtherDistribution(Float otherDistribution) {
		this.otherDistribution = otherDistribution;
	}
	public void setBalanceDown(Float balanceDown) {
		this.balanceDown = balanceDown;
	}
	public void setCsToC(Float csToC) {
		this.csToC = csToC;
	}
	public void setSrToC(Float srToC) {
		this.srToC = srToC;
	}
	public void setSrLose(Float srLose) {
		this.srLose = srLose;
	}
	public void setOtherBalance(Float otherBalance) {
		this.otherBalance = otherBalance;
	}
	public void setCloseBalanceT(Float closeBalanceT) {
		this.closeBalanceT = closeBalanceT;
	}
	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "OwnerEquityChanges [balanceDown=" + balanceDown + ", capital="
				+ capital + ", changeT=" + changeT + ", chooseTime="
				+ chooseTime + ", closeBalanceL=" + closeBalanceL
				+ ", closeBalanceT=" + closeBalanceT + ", csToC=" + csToC
				+ ", distribution=" + distribution + ", ent=" + ent
				+ ", equity=" + equity + ", errorChange=" + errorChange
				+ ", id=" + id + ", investCapital=" + investCapital + ", list="
				+ list + ", monthEnd=" + monthEnd + ", monthStart="
				+ monthStart + ", netProfit=" + netProfit + ", openBalanceT="
				+ openBalanceT + ", otherBalance=" + otherBalance
				+ ", otherCapital=" + otherCapital + ", otherChangeT="
				+ otherChangeT + ", otherDistribution=" + otherDistribution
				+ ", otherOwnerChange=" + otherOwnerChange + ", payment="
				+ payment + ", policyChange=" + policyChange
				+ ", profitDistribution=" + profitDistribution
				+ ", saleNetChange=" + saleNetChange + ", srLose=" + srLose
				+ ", srToC=" + srToC + ", subtotal12=" + subtotal12
				+ ", surplusReserve=" + surplusReserve + ", taxEffect="
				+ taxEffect + ", type=" + type + ", year=" + year + "]";
	}
	
       

}
